package com.woniuxy.bookmallmanagersrever.mapper;

import com.woniuxy.bookmallmanagersrever.entity.TManagerRole;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

public interface TManagerRoleMapper extends Mapper<TManagerRole> {
    @Delete("delete from t_manager_role where role_id = #{id}")
    void deleteDataByRoleId(int id);

    void insertBatch(@Param("mid") Long id, @Param("roleIds") int[] roleIds);
}